import {
	uploadImage,
	uploadFile
} from '@/utils/request'
const key = '/Upload/'
/* 
 * @function UploadImage 上传图片
 */
export function UploadImage(data) {
	return uploadImage({
		url: key + 'image',
		data: data,
	})
}
export function upload(Filetype) {
	const type=Filetype==='workWps'? 'pdf':Filetype
	return uploadFile(type, key +Filetype)
}